from hopfield.hopfield import HopfieldNeuralNetwork

__author__ = 'Douglas'

hopfield = HopfieldNeuralNetwork(4)

pattern1 = [True, True, False, False]
pattern2 = [True, False, False, False]

print("Training...", pattern1)
hopfield.train(pattern1)

print("Weight matrix", hopfield.weight_matrix)

print("Presenting... ", pattern1, "and getting", hopfield.present(pattern1))
print("Presenting... ", pattern2, "and getting", hopfield.present(pattern2))
